﻿/// <reference path="_namespace.js" />

/*****************************************************************************
MS Ajax library Interface definition.
Author: krobinson 10/6/2008 12:52:37 PM.
Class:  ajax.components.IMenuItemContainer
Description:
Define public Interface that another object could use to define itself as something that containns menu items.

*****************************************************************************/

$addNamespace("ajax.components");
//-----------------------------------------------------------------------------

ajax.components.IMenuItemContainer = function(){}; // ctor should be blank.
$extend("ajax.components.IMenuItemContainer", ""); // You may also inherit from another interface.
//-----------------------------------------------------------------------------

// Public members
//-----------------------------------------------------------------------------

// Public Methods
//-----------------------------------------------------------------------------
ajax.components.IMenuItemContainer.prototype =
{
    getMenuItem: function(sKey){},
    addMenuItem: function(menuItem){},
    removeMenuItem: function(menuItem){},
    add_itemSelected: function(handler){},
    remove_itemSelected: function(handler){}
}

// Statics
//-----------------------------------------------------------------------------
ajax.components.IMenuItemContainer.cast = function(obj)
{///<returns type="ajax.components.IMenuItemContainer"/>
    return obj;
}